package com.lysj.bhp.borrowing.repository;

import com.lysj.bhp.borrowing.domain.BorrowingRate;
import jnr.ffi.annotations.In;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @Author: ZhangWenJian
 * @Create: 2018/8/14--8:53
 * @Description:借贷利率Jpa
 */
public interface BorrowingRateRepository extends JpaRepository<BorrowingRate,Long>, JpaSpecificationExecutor {
    //查找利率
    BorrowingRate findByRateTypeAndRepaymentWayAndIsExist(Integer rateType,Integer repaymentWay,Integer isExist);
    //查找某ID，在isExist 下记录
    BorrowingRate findByBorrowingRateIdAndIsExist(Long borrowingRateId,Integer isExist);
}
